import request from '@/utils/request'
import qs from 'qs'

// 查询在线用户列表
export function list(data) {
  return request({
    url: '/monitor/online/list',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },

    method: 'post',
    params: data
  })
}

// 强退用户
export function forceLogout(tokenId) {
  return request({
    url: '/monitor/online/' + tokenId,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'POST'
  })
}
